package com.china.great.system.service.impl;

import com.china.great.system.dao.MenuMapper;
import com.china.great.system.entity.Menu;
import com.china.great.system.service.SystemMenuService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @Author: Liu HongYang
 * @DateTime: 2020/5/3 4:39 下午
 * @Description: TODO
 */
public class SystemMemuServiceImpl implements SystemMenuService{

    @Autowired
    private MenuMapper menuMapper;

    @Override
    public List<Menu> getMenuList() {
        return menuMapper.getMenuList();
    }

    @Override
    public List<Menu> getMenuListByRoleId(int id) {
        return menuMapper.getMenuListByRoleId(id);
    }

    @Override
    public List<Menu> getMenuListByUsername(String username) {
        return menuMapper.getMenuListByUsername(username);
    }
}
